package yc.tool.dbmigrate.entity;

import java.util.Date;
import java.util.Map;

public class SyncStatus {

	/**
	 * 上次同步状态（和节点同步状态一致。2：完成(默认) 3.失败）
	 */
	private Integer lastSyncStatus;
	/**
	 * 上次同步日期 格式：2019-12-13 12:19:02
	 */
	private Date lastSyncDate;

	/**
	 * 上次同步耗时（单位：秒）
	 */
	private Integer lastSyncTime;

	/**
	 * 总共同步耗时
	 */
	private Integer totalSyncTime;

	/**
	 * 总共尝试次数
	 */
	private Integer totalTryNumber;
	
	/**
	 * 同步状体文件里的注释内容
	 */
	private String comment;
	
	/**
	 * 状态集合<同步节点序号，同步状态(见SyncBean.syncStatus)>
	 */
	private Map<Integer, Integer> statusMap;

	public SyncStatus() {
		super();
		// TODO Auto-generated constructor stub
	}

	public SyncStatus(Integer lastSyncStatus, Date lastSyncDate, Integer lastSyncTime, Integer totalSyncTime,
			Integer totalTryNumber, String comment) {
		super();
		this.lastSyncStatus = lastSyncStatus;
		this.lastSyncDate = lastSyncDate;
		this.lastSyncTime = lastSyncTime;
		this.totalSyncTime = totalSyncTime;
		this.totalTryNumber = totalTryNumber;
		this.comment = comment;
	}

	public SyncStatus(Integer lastSyncStatus, Date lastSyncDate, Integer lastSyncTime, Integer totalSyncTime,
			Integer totalTryNumber, String comment, Map<Integer, Integer> statusMap) {
		super();
		this.lastSyncStatus = lastSyncStatus;
		this.lastSyncDate = lastSyncDate;
		this.lastSyncTime = lastSyncTime;
		this.totalSyncTime = totalSyncTime;
		this.totalTryNumber = totalTryNumber;
		this.comment = comment;
		this.statusMap = statusMap;
	}


	public Integer getLastSyncStatus() {
		return lastSyncStatus;
	}

	public void setLastSyncStatus(Integer lastSyncStatus) {
		this.lastSyncStatus = lastSyncStatus;
	}

	public Date getLastSyncDate() {
		return lastSyncDate;
	}

	public void setLastSyncDate(Date lastSyncDate) {
		this.lastSyncDate = lastSyncDate;
	}

	public Integer getLastSyncTime() {
		return lastSyncTime;
	}

	public void setLastSyncTime(Integer lastSyncTime) {
		this.lastSyncTime = lastSyncTime;
	}

	public Integer getTotalSyncTime() {
		return totalSyncTime;
	}

	public void setTotalSyncTime(Integer totalSyncTime) {
		this.totalSyncTime = totalSyncTime;
	}

	public Integer getTotalTryNumber() {
		return totalTryNumber;
	}

	public void setTotalTryNumber(Integer totalTryNumber) {
		this.totalTryNumber = totalTryNumber;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}


	public Map<Integer, Integer> getStatusMap() {
		return statusMap;
	}


	public void setStatusMap(Map<Integer, Integer> statusMap) {
		this.statusMap = statusMap;
	}

}
